package com.pactera.madp.cp.mapper.crm;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pactera.madp.cp.api.entity.crm.WorkCustTagInfoEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zkd
 * @date 2022/5/5 10:56
 */
public interface WorkCustTagInfoMapper extends BaseMapper<WorkCustTagInfoEntity> {

    List<WorkCustTagInfoEntity> list(@Param("tableName") String tableName);

    boolean removeAll(@Param("tableName") String tableName);

    boolean batchSaveOrUpdate(@Param("tableName") String tableName, @Param("entityList") List<WorkCustTagInfoEntity> entityList);

    List<WorkCustTagInfoEntity> listByCustNo(@Param("tableName") String tableName, @Param("custNo") String custNo);

}
